home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 26 / Cream of the Crop 26.iso / program / ddj0897.zip / DYN401.ZIP / makefile.unx < prev    next >
Makefile  |  1997-04-16  |  4KB  |  108 lines

  1.  
  2. include makefile.inc
  3.  
  4.  
  5. all : setup.unx
  6.     cd kernel   ; $(MAKE) -f makefile.unx
  7.     cd class    ; $(MAKE) -f makefile.unx
  8.     cd threads  ; $(MAKE) -f makefile.unx
  9.     cd dpp      ; $(MAKE) -f makefile.unx install
  10.     cd generics ; $(MAKE) -f makefile.unx
  11.  
  12. base : makegens
  13.     cd kernel   ; $(MAKE) -f makefile.unx
  14.     cd class    ; $(MAKE) -f makefile.unx
  15.     cd threads  ; $(MAKE) -f makefile.unx
  16.     cd generics ; $(MAKE) -f makefile.unx
  17.  
  18. debug : setup.unx
  19.     cd kernel   ; $(MAKE) -f makefile.unx DEBUG=1
  20.     cd class    ; $(MAKE) -f makefile.unx DEBUG=1
  21.     cd threads  ; $(MAKE) -f makefile.unx DEBUG=1
  22.     cd dpp      ; $(MAKE) -f makefile.unx DEBUG=1 install
  23.     cd generics ; $(MAKE) -f makefile.unx DEBUG=1
  24.  
  25. clean :
  26.     cd kernel   ; $(MAKE) $@ -f makefile.unx
  27.     cd class    ; $(MAKE) $@ -f makefile.unx
  28.     cd threads  ; $(MAKE) $@ -f makefile.unx
  29.     cd generics ; $(MAKE) $@ -f makefile.unx
  30.     cd dpp      ; $(MAKE) $@ -f makefile.unx
  31.     find . -name '*~' -exec rm \{\} \;
  32.     find . -name '*.o' -exec rm \{\} \;
  33.     find . -name '*.obj' -exec rm \{\} \;
  34.     find . -name '*.tmp' -exec rm \{\} \;
  35.     find . -name '*.{*' -exec rm \{\} \;
  36.     find . -name '--linux-.---' -exec rm - \{\} \;
  37.     find examples -name '*.exe' -exec rm \{\} \;
  38.     find examples -name 'main' -exec rm \{\} \;
  39.  
  40. realclean : clean
  41.     rm -f setup.unx setup.dos
  42.     rm -f bin/{dpp,delcr,addcr}
  43.     rm -rf lib/d*
  44.  
  45. ship-unix : realclean
  46.     find . -name '*.exe' -exec rm \{\} \;
  47.  
  48.  
  49. setup.unx :
  50.     @-mkdir lib
  51.     cd bin ; $(CC) -o delcr -O delcr.c
  52.     cd kernel   ; ../bin/delcr makefile.unx README *.d
  53.     cd class    ; ../bin/delcr makefile.unx README *.d
  54.     cd threads  ; ../bin/delcr makefile.unx README *.d
  55.     cd dpp      ; ../bin/delcr makefile.unx README *.d
  56. #  Times associated with .c files must be after the .d files for make's sake
  57.     sleep 2
  58.     cd kernel   ; ../bin/delcr *.h *.iv *.c
  59.     cd class    ; ../bin/delcr *.h *.c
  60.     cd threads  ; ../bin/delcr *.c
  61.     cd dpp      ; ../bin/delcr *.h *.c
  62.     cd docs     ; ../bin/delcr *
  63.     cd generics ; ../bin/delcr makefile.unx README makegens mkgens3 mkgens4 mkgens4f mkgensx
  64.     cd include  ; ../bin/delcr *.h
  65.     cd generics ; chmod 775 makegens mkgens3 mkgens4 mkgens4f mkgensx
  66.     find examples -name 'makefile.unx' -exec bin/delcr \{\} \;
  67.     find examples -name 'readme'       -exec bin/delcr \{\} \;
  68.     find examples -name 'README'       -exec bin/delcr \{\} \;
  69.     find examples -name '*.h'          -exec bin/delcr \{\} \;
  70.     find examples -name '*.d'          -exec bin/delcr \{\} \;
  71.     find examples -name '*.c'          -exec bin/delcr \{\} \;
  72.     bin/delcr examples/list makefile.unx makefile.inc dropunx.sh
  73.     chmod 755 dropunx.sh
  74. #    find multhead -type f -exec bin/delcr \{\} \;
  75.     rm -f setup.dos
  76.     touch setup.unx
  77.     
  78. setup.dos :
  79.     cd bin ; $(CC) -o addcr -O addcr.c
  80.     cd include  ; ../bin/addcr *.h
  81.     cd kernel   ; ../bin/addcr  README *.d *.h *.iv *.c
  82.     cd class    ; ../bin/addcr  README *.d *.h *.c
  83.     cd threads  ; ../bin/addcr  README *.d     *.c
  84.     cd dpp      ; ../bin/addcr  README *.d *.h *.c
  85.     cd docs     ; ../bin/delcr *
  86.     cd generics ; ../bin/addcr  README
  87.     find examples -name 'readme'       -exec bin/addcr \{\} \;
  88.     find examples -name 'README'       -exec bin/addcr \{\} \;
  89.     find examples -name '*.h'          -exec bin/addcr \{\} \;
  90.     find examples -name '*.d'          -exec bin/addcr \{\} \;
  91.     find examples -name '*.c'          -exec bin/addcr \{\} \;
  92.     bin/addcr examples/list
  93.     rm -f setup.unx
  94.     touch setup.dos
  95.  
  96. makegens:
  97.     cd kernel ; rm -f generics.* ; $(DPP) $(DPPOPTS) -h -i -s *.d ; mv generics.h ../include
  98.     cd class ; $(DPP) $(DPPOPTS) -h -i -g ../include/generics.h -s *.d ; mv generics.h ../include
  99.     cd threads ; $(DPP) $(DPPOPTS) -h -i -g ../include/generics.h -s *.d ; mv generics.h ../include
  100.  
  101.  
  102. newgens : makegens
  103.     cd kernel   ;  $(MAKE) -f makefile.unx reallynewgens
  104.     cd class    ;  $(MAKE) -f makefile.unx newgens
  105.     cd threads  ;  $(MAKE) -f makefile.unx newgens
  106.     cd dpp      ;  $(MAKE) -f makefile.unx newgens  ;  $(MAKE) -f makefile.unx generics.c
  107.  
  108.